<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<style>
	#div_show_schedule{
		padding: 10px 50px;
	}
	.row .key{font-weight: 700;padding-bottom: 5px;}
	.row .val,.row .value{padding-bottom: 10px;}
</style>
<script type="text/javascript">
	$(function () {
		var id=$("#scheduleId").val();
		var $dialog = $("#div_show_schedule");
		//编辑
		$dialog.find(".footer-btns > a:eq(0)").off("click").on("click", function () {
			PRO.fullcalendar.edit(ctx+"/sys/schedule/schedule/dialog/edit", id)
		});
		//删除
		$dialog.find(".footer-btns > a:eq(1)").off("click").on("click", function () {
			layer.confirm("您确定要删除该事项吗？", {"offset":["40%","25%"]},function () {
				PRO.fullcalendar.del();
			}, "删除事项");
		});
		//取消
		$dialog.find(".footer-btns > a:last").off("click").on("click", function () {
			layer.closeAll();
		});
	});

</script>
<div class="dialog-form" id="div_show_schedule">
   <input type="hidden" id="scheduleId" name="id" value="${schedule.id}"/>
	<div class="body-text">
		<div class="row">
			<div class="key gray">事项名称</div>
			<div class="value break">${schedule.name}</div>
			<div class="key gray">创建人</div>
			<div class="val break">${schedule.createBy.name}</div>
		</div>
		<div class="row">
			<div class="key gray">开始时间</div>
			<div class="val break">${schedule.startDateStr}</div>
			<div class="key gray">结束时间</div>
			<div class="val break">${schedule.endDateStr}</div>
		</div>
		<div class="row">
			<div class="key gray">参与人员</div>
			<div class="value break">dfdfd</div>
		</div>
		<div class="row">
			<div class="key gray">事项说明</div>
			<div class="value break">${schedule.description}</div>
		</div>
		<div class="row">
			<div class="key gray">备注说明</div>
			<div class="value break">${schedule.remarks}</div>
		</div>
	</div>
	<div class="footer-btns">
		   <c:if test="${isCreater==true}">
			   <a href="javascript:;" class="btn btn-blue">编辑</a>
			   <a href="javascript:;" class="btn btn-blue">删除</a>
		   </c:if>
		 <a href="javascript:;" class="btn btn-cancel">关闭</a>
	</div>
</div>